$(function() {
	windowOpen('../up/face2faceWaiting.html');
	$("#left").load("../common/gover-left.html");
	var businessId = parseQueryString().businessId;
	var type = parseQueryString().type;
	var userType = parseQueryString().userType;
	var code = parseQueryString().code;
	var userId = sessionStorage.getItem("userId");
	$(".ystep1").loadStep({
		size: "small",
		color: "green",
		steps: [{
				title: "事项选择"
			},
			{
				title: "服务选择"
			},
			{
				title: "信息录入"
			},
			{
				title: "寄件选择"
			},
			{
				title: "取件选择"
			},
			{
				title: "提交成功"
			}
		]
	});
	$(".ystep1").setStep(2);
	my_vue = new Vue({
		el: '#vue_info',
		data: {

		},
		methods: {
			//获取面对面连接状态
			getQueueStatus: function() {
				$.ajax({
					url: 'http://192.168.10.45:8888/face/getQueueStatus.do',
					data: {
						userId: userId
					},
					async: true,
					type: 'post',
					success: function(result) {
						if(result.success) {

						} else {
							showRedMsg("message", "抱歉，服务器偷懒了~");
						}
					},
					error: function() {
							showRedMsg("message", "抱歉，服务器偷懒了~");
					}
				});
			},
			//自助端退出排队
			clientExitQueue: function() {
				$.ajax({
					url: 'http://192.168.10.45:8888/face/clientExitQueue.do',
					data: {
						userId: userId
					},
					async: true,
					type: 'post',
					success: function(result) {
						if(result.success) {
							window.location="selfHelpFormInput.html";
						} else {
							showRedMsg("message", "抱歉，服务器偷懒了~");
						}
					},
					error: function() {
							showRedMsg("message", "抱歉，服务器偷懒了~");
					}
				});
			}
		},
		ready: function() {
			//初始化获得总页面数和列表数据

		}
	});
});